/*
 * @Author: shengduiliang 1107722390@qq.com
 * @Date: 2024-04-27 23:52:08
 * @LastEditors: shengduiliang 1107722390@qq.com
 * @LastEditTime: 2024-04-28 01:27:41
 * @FilePath: /treasury/src/hooks/useMount.ts
 * @Description: useEffect封装
 */
import { useEffect } from "react"

/**
 * useEffect封装
 * @param callbak 回调函数
 */
export const useMount = (callbak: () => void) => {
  useEffect(() => {
    callbak()
  }, [])
}